clear mex
clear java
home
ShowCursor;
KbQueueRelease();
ListenChar(0);
Screen('closeall');
if Eyelink('IsConnected')
    try
        if Eyelink('CheckRecording')
            Eyelink('stoprecording');
            Eyelink('closefile');
        end
        Eyelink('shutdown');
    catch yomama
    end
end